package com.tjetc._5interface;

public class _4InterfaceExercise1 {
    public static void main(String[] args) {
        new C().pX();
    }
}

interface A {
    int x = 0;
}

class B {
    int x = 1;
}

class C extends B implements A {
    public void pX() {
        // Reference to 'x' is ambiguous(不明确的), both 'B.x' and 'A.x' match
//        System.out.println(x);

        System.out.println("B的x：" + super.x + "，A的x：" + A.x);
    }


}


